package com.android.topview.watermelon.network

import com.android.topview.watermelon.exchange.ExchangeCode
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface RetrofitModel {

    @GET("rate")
    fun exchangeRate(
        @Query("fromCode") from: String = ExchangeCode.CNY.code,
        @Query("toCode") to: String = ExchangeCode.USD.code
    ): Call<ResponseBody>

}